/**      
 * @file		struct1.cpp
 * @description		This example demonstrates how to create
 *			your own data types by using structs
 *			Structs are a collection of variables that
 *			are related in some context. The example uses
 *			a Student data type which has a name and sID
 *			variable. This example also demonstrates using
 *			structs in functions.
 * @course		CSCI 123 Section 00000
 * @assignment 
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

struct Student {
	char mName[256];
	char mSID[256];
};

// dropped function documentation for brevity
// you must document your functions
void getStudentInfo(Student& aStudent);
void outputStudentInfo(const Student& aStudent);

/**
 * @return zero if the application executes successfully
 */
int main() {
	Student studentOne;
	Student studentTwo;

	getStudentInfo(studentOne);
	getStudentInfo(studentTwo);

	outputStudentInfo(studentOne);
	outputStudentInfo(studentTwo);

	return 0;
}

void getStudentInfo(Student& aStudent) {
	cout << "Please type the name of the student.\n";
	cin.getline(aStudent.mName, 256);

	cout << "Please type the student id of the student.\n";
	cin.getline(aStudent.mSID, 256);
}

void outputStudentInfo(const Student& aStudent) {
	cout << "Name: " << aStudent.mName << endl;
	cout << "SID: " << aStudent.mSID << endl;
}

